package com.day13.zidingyi;
public class Teacher {
    public void checkScore(int score) throws ScoreException {
        if(score<0||score>100){
            throw new ScoreException("成绩不合法");
        }else{
            System.out.println("成绩合法");
        }
    }
}
